home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1996 February
/
EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso
/
earcd
/
editor
/
insrttxt.lha
/
insert_text_clip.doc
next >
Wrap
Text File
|
1995-09-25
|
1KB
|
37 lines
Insert Text Clip
25 Sep 95
Mike Fitzgerald (mrfitz@groupz.net)
This macro gets a filename, reads it into the clipboard and inserts
it into FC/FW.
I've been annoyed the FC (and FW too) does not have the simple little
"Insert File" function that every other WPro I've ever used had.
I found a Macro on Aminet that would insert an ascii of FC/FW file,
but it seemed rather inelegant in that it had to open another window
to do it.
So I dug around in my rexxlib docs until I found the writeclip function
in rexxutil.lib. After I found that it was a simple matter to knock this
together.
It does the same as the other macro (Insert_Ascii.rexx, I believe) but it
doesn't have to open another doc, mark, cut, close, paste, it just presents
a filerequester, reads the file into the clipboard, then pastes it at the
current cursor position in the selected doc. A lot quieter.
Installation:
Copy rexxutil.library into your Libs: directory.
Copy Insert_Text_Clip.rexx into your FW/FC macros directory.
Either assign it to a button or a menu item or whatever.
Postition the cursor where you want to inset the text, hit the button(or
select the menu item), select your filename, hit insert or return.
Happy writing.